/*
 * @Author: 李晓丹-=== 
 * @Date: 2021-02-23 14:29:28 
 * @Last Modified by: 李晓丹
 * @Last Modified time: 2021-03-02 14:04:43
 */

import {lazy} from 'react';
export interface RouterInter{
    path:string;
    component?:any;
    children?:RouterInter[];
    redirect?:string
}

const routes:RouterInter[] = [
    {
        path:'/official',
        component:lazy(() => import(/* webpackChunkName:"official"*/'views/official/')),
        children:[
            {
                path:'/official/car',
                component:lazy(() => import(/* webpackChunkName:"car"*/'views/car/'))
            }
        ]
    },
    {
        path:'/img/:SerialID',
        component:lazy(() => import(/* webpackChunkName:"official"*/'views/img/'))
    },
    {
        path:'/inquiry',
        component:lazy(() => import(/* webpackChunkName:"official"*/'views/inquiry/'))
    },
    {
        path:'/detail/:id',
        component:lazy(() => import(/* webpackChunkName:"official"*/'views/detail/'))
    },
    {
        path:'/',
        redirect:'/official'
    }
]
 
export default routes